SetZipEncrypt OLE Automation RoutineSetZipEncryptFlags( oldPassword, newPassword, storePassword, encryptNew, restrictCopying ) This routine permits setting the Zip encryption options available on t on the zip encryption page of the index dialog. The oldPassword will be ignored if a password is not currently set in the index. If a password does exist and copying is restricted, then this parameter must match the existing password. In any event, the password will be set to newPassword. This can be an empty string to remove a password. The storePassword, encryptNew and restrictCopying parameters are boolean values corresponding to the appropriate check boxes on the encryption page of the index dialog. Example: Returns true if the operation succeeded.If Not wilbur.SetZipEncrypt("encrypted", "vbencrypted", True, False, False) Then MsgBox ("Set zip encrypt failed") End If |
Copyright ⌐ 1999 RedTree
Development Inc. All rights reserved. |